#include <reg52.h>
#include "config.h"

sbit LEDA = P0^0;
sbit LEDB = P0^1;
char funTest(char _tmp);
void funTestIO(void);
char val = 0;

void main(void){
	LEDA = 0;
	LEDB = 0;
	val = funTest(0);
	while(1){
		funTestIO();
	}
	return;
}

char funTest(char _tmp){
#ifdef PROCTRL_A
	return _tmp+1;
#endif
#ifdef PROCTRL_B
	return _tmp-1;
#endif
}

void funTestIO(void){
#ifdef PROCTRL_A
	LEDA = 1;
#endif
#ifdef PROCTRL_B
	LEDB = 1;
#endif
}